class Calcumlate:
    def __init__(self, num1, num2):
        self.num1 = num1
        self.num2 = num2

    def add(self):
        return self.num1 + self.num2

    def subtract(self):
        return self.num1 - self.num2

    def multiply(self):
        return self.num1 * self.num2

    def division(self):
        if self.num2 == 0:
            print("除数不能为0")
        else:
            return self.num1 / self.num2


cal = Calcumlate(8, 2)
print(cal.add())
print(cal.subtract())
print(cal.multiply())
print(cal.division())
